const { http } = uni.$u

// 注册
export const api_register = (params = {}, config = {}) => http.post('/addons/installmentloan/wxapp.user/register', params, config);
// 登录
export const api_login = (params = {}, config = {}) => http.post('/addons/installmentloan/wxapp.user/login', params, config);
// 获取用户信息
export const api_getUserInfo = (params = {}, config = {}) => http.post('/addons/installmentloan/wxapp.my/myinfofield', params, config);
// 重置密码
export const api_resetpwd = (params = {}, config = {}) => http.post('/addons/installmentloan/wxapp.user/resetpwd', params, config);
// 贷款金额套餐
export const api_daikuanprice = (params = {}, config = {}) => http.get('/addons/installmentloan/wxapp.config/daikuanprice', params, config);
// 贷款月份和利率
export const api_daikuanmonth = (params = {}, config = {}) => http.get('/addons/installmentloan/wxapp.config/daikuanmonth', params, config);
//  贷款协议
export const api_treaty = (params = {}, config = {}) => http.get('/addons/installmentloan/wxapp.treaty/index', params, config);
//   贷款申请
export const api_loanregister = (params = {}, config = {}) => http.post('/addons/installmentloan/wxapp.my/loanregister', params, config);
//   广告调用
export const api_ads = (params = {}, config = {}) => http.get('/addons/installmentloan/wxapp.config/ads', params, config);
//   总客服
export const api_zongkefu = (params = {}, config = {}) => http.get('/addons/installmentloan/wxapp.config/zongkefu', params, config);
//   代理客服
export const api_daikefu = (params = {}, config = {}) => http.get('/addons/installmentloan/wxapp.config/daikefu', params, config);
//   获取首页广播
export const api_broadcast = (params = {}, config = {}) => http.get('/addons/installmentloan/wxapp.config/broadcast', params, config);
//   我的贷款列表
export const api_loan_index = (params = {}, config = {}) => http.get('/addons/installmentloan/wxapp.my/loan_index', params, config);
//   我的贷款详情
export const api_loan_show = (params = {}, config = {}) => http.get('/addons/installmentloan/wxapp.my/loan_show', params, config);
// 提现申请
export const api_moneyregister = (params = {}, config = {}) => http.post('/addons/installmentloan/wxapp.my/moneyregister', params, config);
//    我的资料列表 
export const api_info_index = (params = {}, config = {}) => http.get('/addons/installmentloan/wxapp.my/info_index', params, config);
//    是否可以修改信息 
export const api_allow_update = (params = {}, config = {}) => http.post('/addons/installmentloan/wxapp.my/allow_update', params, config);






